package com.xiao.student.service;

import com.xiao.student.bean.Fangtan;
import com.xiao.student.mapper.FangtanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 衰草寒烟 on 2017/2/14.
 */
@Service("fangtanservice")
public class FangtanService {
    @Autowired
    private FangtanMapper Fangtanmapper;

    /**
     * 保存访谈
     * @param fangtan
     * @return
     */
    public boolean saveft(Fangtan fangtan){
        int rs = Fangtanmapper.saveft(fangtan);
        return rs>0;
    }
    /**
     * 访谈列表
     * @return
     */
    public List<Fangtan> getft(int bftr){
        List<Fangtan> rs = Fangtanmapper.getft(bftr);
        return rs;
    }
}
